﻿
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using FY13.Data;
using System.Collections.ObjectModel;

namespace FY13.ViewModel
{
    public class AgendaViewModel
    {
        public ObservableCollection<DataGroup<Agenda>> AgendaDataSource { get; set; }
        public AgendaViewModel()
        {
            AgendaDataSource = new ObservableCollection<DataGroup<Agenda>>();
            DataGroup<Agenda> g1 = new DataGroup<Agenda>();
            g1.Date = new DateTime(2012, 10, 29);
            g1.Content = "Arrival in Xiamen";
            g1.Tag = 1;
            AgendaDataSource.Add(g1);

            DataGroup<Agenda> g2 = new DataGroup<Agenda>();
            g2.Date = new DateTime(2012, 10, 30);
            g2.Items = new ObservableCollection<Agenda>();
            g2.Items.Add(new Agenda() { TimeSpane = "08:30-12:00", Content = "General Session", Address = "Banquet Hall 3, 2F, Hotel" });
            g2.Items.Add(new Agenda() { TimeSpane = "12:00-12:20", Content = "Group Photo",Address=null});
            g2.Items.Add(new Agenda() { TimeSpane = "12:00-13:30", Content = "Buffet Lunch", Address = "Seafood Buffet, 2F, Hotel" });
            g2.Items.Add(new Agenda() { TimeSpane = "14:00-18:00", Content = "Sight-seeing ", Address = "Nanputuo Temple &Huli Ancient Fortress" });
            g2.Items.Add(new Agenda() { TimeSpane = "19:00-22:00", Content = "Gala Dinner", Address = "Banquet 3, 2F, Hotel" });
            AgendaDataSource.Add(g2);

            DataGroup<Agenda> g3 = new DataGroup<Agenda>();
            g3.Date = new DateTime(2012, 10, 31);
            g3.Items = new ObservableCollection<Agenda>();
            g3.Items.Add(new Agenda() { TimeSpane = "10:00-15:00", Content = "Teambuilding", Address = "Koron Island" });
            g3.Items.Add(new Agenda() { TimeSpane = "15:00-16:30", Content = "Sight-seeing", Address = "Little Quemoy Island" });
            g3.Items.Add(new Agenda() { TimeSpane = "17:00-19:00", Content = "Dinner",Address=null });
            AgendaDataSource.Add(g3);
            DataGroup<Agenda> g4 = new DataGroup<Agenda>();
            g4.Date = new DateTime(2012, 11, 1);
            g4.Content = "Back to Beijing";
            g4.Tag = 1;
            AgendaDataSource.Add(g4);
        }
    }
}
